package cn.mxz.mapper;

import cn.mxz.pojo.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 订单  Mapper 接口
 * </p>
 *
 * @author 小毛
 * @since 2021-12-02
 */
public interface OrdersMapper extends BaseMapper<Orders> {
    List<Orders> selectAllOrdersByUserId(String userId);

    List<Orders> selectAllOrdersByStatus(@Param("userId") String userId, @Param("status") String status);

    int changeStatusByOrderId(@Param("orderId") String orderId);

    int faHuo(@Param("orderId") String orderId);

    int shouHuo(@Param("orderId") String orderId);
}

